#!/bin/sh

# Part of Zombie Navigator
# Copyright © 2015  Zombie Navigator Developers

cd "`dirname "$0"`/.."
. ./version_info

git="`git show -s --pretty=format:%H 2>/dev/null | head -c 8`"
[ "$git" ] && {
	version_git="+git.$git"
	git_changes="`git status -s`"
	[ "$git_changes" ] && version_git="${version_git}+uncommitted"
}

targetDir="./src/data/docs"

./tools/gen-docs-ng.sh ./docs \
	"Zombie Navigator: API Documentation v$addon_version" \
	"Build: version ${addon_version}" > "$targetDir/index.html"

echo "Done?" >&2


# vim: ts=4 noet ai

